#include "usersmanagewin.h"
#include "ui_usersmanagewin.h"

usersmanagewin::usersmanagewin(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::usersmanagewin)
{
    ui->setupUi(this);
    m_fuserswin=new fuserswin(this);
    connect(m_fuserswin,&fuserswin::returnlast,this,&QWidget::show);
    connect(ui->returnButton,&QPushButton::clicked,[this]{
emit showlast();
        this->close();
    });
}

usersmanagewin::~usersmanagewin()
{
    delete ui;
}


void usersmanagewin::on_fusersButton_clicked()
{
    m_fuserswin->show();
    this->hide();
}

